var mp3s = new Array('10.mp3','12.mp3','14.mp3','16.mp3','1.mp3','3.mp3','5.mp3', '7.mp3','99.mp3',
    '11.mp3','13.mp3','15.mp3','17.mp3', '2.mp3','4.mp3','6.mp3','8.mp3','9.mp3','18.mp3','19.mp3',
    '20.mp3','21.mp3','22.mp3','23.mp3','24.mp3','25.mp3','26.mp3','27.mp3','28.mp3','29.mp3','30.mp3',
    '31.mp3','32.mp3','33.mp3','35.mp3','36.mp3','37.mp3','38.mp3');
var host = 'http://106.14.33.202/assets';
var min = 0;
var max = mp3s.length;
function playAudio(audioElementId) {
    var audioElement = document.getElementById(audioElementId);
    var playerId = random(min, max);
    audioElement.src = host + '/' + mp3s[playerId];
    audioElement.play();
}
//生成a-b之间的随机数
function random(a, b) {
    var min,max;
    if (a < b) {
        min = a;
        max = b;
    } else {
        min = b;
        max = a;
    }
    return Math.floor(Math.random() * (max -min +1) + min);
}
